package cn.csc.module.member.convert.role;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.member.controller.app.role.vo.*;
import cn.csc.module.member.dal.dataobject.role.MemberRoleDO;

/**
 * 会员角色 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface MemberRoleConvert {

    MemberRoleConvert INSTANCE = Mappers.getMapper(MemberRoleConvert.class);

    MemberRoleDO convert(AppMemberRoleCreateReqVO bean);

    MemberRoleDO convert(AppMemberRoleUpdateReqVO bean);

    AppMemberRoleRespVO convert(MemberRoleDO bean);

    List<AppMemberRoleRespVO> convertList(List<MemberRoleDO> list);

    PageResult<AppMemberRoleRespVO> convertPage(PageResult<MemberRoleDO> page);

    List<AppMemberRoleExcelVO> convertList02(List<MemberRoleDO> list);

}
